package cn.adelyn.blog.file.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import jakarta.validation.constraints.NotNull;
import java.util.Date;

@Data
public class InsertShareInfoDTO {

    @NotNull(message = "fileId 不能为空~")
    private Long fileId;
    private Long userId;

    @NotNull(message = "分享失效时间不能为空~")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date invalidTime;
}
